package com.itheima.common;

/**
 * @author :WuJunJie
 * packageName :com.itheima.user.common
 * fileName :ThreadLocalUtil
 * creationTime :2022-12-13 18:34
 */

public class ThreadLocalUtil {
    private static ThreadLocal<String> threadLocal=new ThreadLocal<>();

    public static void setId(String id){
        threadLocal.set(id);
    }
    public static String getId( ){
        return threadLocal.get();
    }
    public static void remove( ){
        threadLocal.remove();
    }
}
